package com.example.cloud.entity;

import java.io.Serializable;
import lombok.Data;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author: create by xiong
 * @date: 2021/5/26
 * @description:
 */
@Data
public class User implements Serializable {
    private Integer id;//	int	11	0	0	-1	0	0	0		0					-1	0
    private String password	;//varchar	255	0	-1	0	0	0	0		0		utf8mb4	utf8mb4_general_ci		0	0
    private String username;//	varchar	255	0	-1	0	0	0	0		0		utf8mb4	utf8mb4_general_ci		0	0
    private String role;//	varchar	255	0	-1	0	0	0	0		0		utf8mb4	utf8mb4_general_ci		0	0
public static void main(String[] args){
    BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
    String password = passwordEncoder.encode("123");
    System.out.println(password);

}

}
